package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"column:username;not null;type:varchar(80) comment '用户名'" json:"username"`
	Password string `gorm:"column:password;not null;type:varchar(80) comment '密码的MD5'" json:"password"`
	Role     int    `gorm:"column:role;default:0;type:tinyint unsigned comment '0-普通用户,1-管理员'" json:"role"`
	Apikey   string `gorm:"column:apikey;not null;type:varchar(80) comment '接口apikey'" json:"apikey"`
}
